<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if ($broker_id = $route->getAdminId()){
	$db->sendQuery("delete from `partners` where `broker_id` = '$broker_id'");
	$db->sendQuery("delete from `brokers` where `broker_id` = '$broker_id' limit 1");
}

goToPage("/admin/brokers");
?>